/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023.
 * Description: support no devmem
 * Author: Abbott Liu <liuwenliang@huawei.com>
 * Create: 2023-09-05
 */

#include <linux/init.h>
#include <linux/string.h>
#include "no_devmem.h"

#ifdef CONFIG_RTOS_HAL_NO_DEVMEM
static int nodevmem;
static int __init no_devmem(char *str)
{
	(void)str;
	nodevmem = 1;
	return 0;
}
early_param("nodevmem", no_devmem);

bool is_no_devmem(const char *name)
{
	return name && nodevmem && strcmp(name, "mem") == 0;
}
#endif
